.class Ldgb/s3$b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ldgb/s3;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "b"
.end annotation


# instance fields
.field volatile a:Z

.field volatile b:[Ldgb/i3;

.field final synthetic c:Ldgb/s3;


# direct methods
.method constructor <init>(Ldgb/s3;)V
    .locals 0

    .line 1
    iput-object p1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput-boolean p1, p0, Ldgb/s3$b;->a:Z

    const/16 p1, 0xc8

    new-array p1, p1, [Ldgb/i3;

    .line 3
    iput-object p1, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    return-void
.end method


# virtual methods
.method public a()I
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">()I"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v0, v0, Ldgb/s3;->k:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v1, v1, Ldgb/s3;->r:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->isEmpty()Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 3
    monitor-exit v0

    return v2

    :cond_0
    const/4 v1, 0x0

    .line 4
    :goto_0
    iget-object v3, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    array-length v3, v3

    const/4 v4, 0x0

    if-ge v1, v3, :cond_1

    .line 5
    iget-object v3, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    aput-object v4, v3, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 6
    :cond_1
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v1, v1, Ldgb/s3;->r:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object v1

    .line 7
    invoke-interface {v1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v1

    move-object v3, v4

    const/4 v5, 0x0

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ldgb/i3;

    .line 8
    iget-object v7, v6, Ldgb/i3;->b:Ljava/lang/String;

    if-nez v7, :cond_2

    iget-object v7, v6, Ldgb/i3;->d:Ldgb/r3$o;

    if-nez v7, :cond_2

    iget-object v7, v6, Ldgb/i3;->c:Ljava/lang/Object;

    instance-of v7, v7, Ljava/lang/Runnable;

    if-eqz v7, :cond_2

    move-object v3, v6

    goto :goto_1

    :cond_2
    const/16 v7, 0xc8

    if-ge v5, v7, :cond_3

    .line 9
    iget-object v7, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    aput-object v6, v7, v5

    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_3
    if-eqz v3, :cond_4

    .line 10
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v1, v1, Ldgb/s3;->r:Ljava/util/HashMap;

    invoke-virtual {v1, v4}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_4
    const/4 v1, 0x0

    :goto_2
    if-ge v1, v5, :cond_6

    .line 11
    iget-object v6, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    aget-object v6, v6, v1

    if-eqz v6, :cond_5

    .line 12
    iget-object v7, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v7, v7, Ldgb/s3;->r:Ljava/util/HashMap;

    iget-object v6, v6, Ldgb/i3;->b:Ljava/lang/String;

    invoke-virtual {v7, v6}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_5
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 13
    :cond_6
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v1, v1, Ldgb/s3;->r:Ljava/util/HashMap;

    invoke-virtual {v1}, Ljava/util/HashMap;->isEmpty()Z

    move-result v1

    const/4 v6, 0x1

    if-nez v1, :cond_7

    const/4 v1, 0x1

    goto :goto_3

    :cond_7
    const/4 v1, 0x0

    .line 14
    :goto_3
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :goto_4
    if-ge v2, v5, :cond_a

    .line 15
    iget-object v0, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    aget-object v0, v0, v2

    if-eqz v0, :cond_9

    .line 16
    iget-object v7, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v8, v0, Ldgb/i3;->b:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ldgb/s3;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 17
    iput-object v7, v0, Ldgb/i3;->e:Ljava/lang/String;

    .line 18
    iget-object v8, v0, Ldgb/i3;->c:Ljava/lang/Object;

    sget-object v9, Ldgb/r3;->a:Ljava/lang/Object;

    if-eq v8, v9, :cond_8

    .line 19
    iget-object v9, v0, Ldgb/i3;->d:Ldgb/r3$o;

    invoke-interface {v9, v8}, Ldgb/r3$o;->a(Ljava/lang/Object;)[B

    move-result-object v8

    .line 20
    iget-object v9, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v10, v9, Ldgb/s3;->n:Ldgb/j3;

    invoke-static {v9, v7}, Ldgb/s3;->a(Ldgb/s3;Ljava/lang/String;)[B

    move-result-object v7

    invoke-virtual {v10, v8, v7}, Ldgb/j3;->a([B[B)[B

    move-result-object v7

    .line 21
    iput-object v7, v0, Ldgb/i3;->f:[B

    goto :goto_5

    .line 22
    :cond_8
    iput-object v4, v0, Ldgb/i3;->f:[B

    :cond_9
    :goto_5
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    .line 23
    :cond_a
    sget v0, Ldgb/s3;->v:I

    add-int/2addr v0, v5

    sput v0, Ldgb/s3;->v:I

    .line 24
    iget-object v0, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v0, v0, Ldgb/s3;->m:Ldgb/o3;

    iget-object v2, p0, Ldgb/s3$b;->b:[Ldgb/i3;

    invoke-virtual {v0, v2, v5}, Ldgb/o3;->a([Ldgb/i3;I)Z

    if-eqz v3, :cond_b

    .line 25
    :try_start_1
    iget-object v0, v3, Ldgb/i3;->c:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_6

    :catchall_0
    nop

    :cond_b
    :goto_6
    if-eqz v1, :cond_c

    .line 26
    iget-object v0, p0, Ldgb/s3$b;->c:Ldgb/s3;

    invoke-virtual {v0, v6}, Ldgb/s3;->a(Z)Z

    :cond_c
    return v5

    :catchall_1
    move-exception v1

    .line 27
    :try_start_2
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_8

    :goto_7
    throw v1

    :goto_8
    goto :goto_7
.end method

.method public run()V
    .locals 7

    const/4 v0, 0x0

    .line 1
    :try_start_0
    sget-object v1, Ldgb/s3;->u:Ldgb/x3;

    invoke-virtual {v1, v0}, Ldgb/x3;->a(I)V

    .line 2
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v1, v1, Ldgb/s3;->t:Ljava/lang/Object;

    monitor-enter v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v2, 0x1

    .line 3
    :try_start_1
    iput-boolean v2, p0, Ldgb/s3$b;->a:Z

    .line 4
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 5
    :try_start_2
    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-boolean v1, v1, Ldgb/s3;->o:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-boolean v1, v1, Ldgb/s3;->q:Z

    if-eqz v1, :cond_0

    .line 6
    invoke-virtual {p0}, Ldgb/s3$b;->a()I

    move-result v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 7
    :goto_0
    iput-boolean v0, p0, Ldgb/s3$b;->a:Z

    .line 8
    sget-object v2, Ldgb/s3;->u:Ldgb/x3;

    invoke-virtual {v2, v0}, Ldgb/x3;->b(I)J

    move-result-wide v2

    .line 9
    sget-boolean v4, Ldgb/x2;->b:Z

    if-eqz v4, :cond_1

    .line 10
    sget v4, Ldgb/s3;->v:I

    if-lez v4, :cond_1

    if-lez v1, :cond_1

    .line 11
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "write "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p0, Ldgb/s3$b;->c:Ldgb/s3;

    iget-object v5, v5, Ldgb/s3;->i:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, " items in "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v5, "ms, avg="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    int-to-long v5, v1

    div-long/2addr v2, v5

    invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, "ms, totalAvg="

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Ldgb/s3;->u:Ldgb/x3;

    .line 12
    invoke-virtual {v1, v0}, Ldgb/x3;->c(I)F

    move-result v0

    sget v1, Ldgb/s3;->v:I

    int-to-float v1, v1

    div-float/2addr v0, v1

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v0, "ms, totalCount="

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget v0, Ldgb/s3;->v:I

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 13
    invoke-static {v0}, Ldgb/a4;->a(Ljava/lang/String;)V

    goto :goto_1

    :catchall_0
    move-exception v2

    .line 14
    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v2
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :catchall_1
    move-exception v1

    .line 15
    :try_start_5
    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    .line 16
    iput-boolean v0, p0, Ldgb/s3$b;->a:Z

    .line 17
    sget-object v1, Ldgb/s3;->u:Ldgb/x3;

    invoke-virtual {v1, v0}, Ldgb/x3;->b(I)J

    .line 18
    sget-boolean v0, Ldgb/x2;->b:Z

    if-eqz v0, :cond_1

    .line 19
    sget v0, Ldgb/s3;->v:I

    :cond_1
    :goto_1
    return-void

    :catchall_2
    move-exception v1

    .line 20
    iput-boolean v0, p0, Ldgb/s3$b;->a:Z

    .line 21
    sget-object v2, Ldgb/s3;->u:Ldgb/x3;

    invoke-virtual {v2, v0}, Ldgb/x3;->b(I)J

    .line 22
    sget-boolean v0, Ldgb/x2;->b:Z

    if-eqz v0, :cond_2

    .line 23
    sget v0, Ldgb/s3;->v:I

    .line 24
    :cond_2
    throw v1
.end method
